package com.invest.vo;

import com.invest.domain.model.SystemUserDO;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * Created by evan on 2017/2/12.
 */
public class LoginUserVO extends User {

    private SystemUserDO systemUserDO;

    public LoginUserVO(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public LoginUserVO(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }

    public SystemUserDO getSystemUserDO() {
        return systemUserDO;
    }

    public void setSystemUserDO(SystemUserDO systemUserDO) {
        this.systemUserDO = systemUserDO;
    }
}
